from dm import DM
import tkinter

import atexit

@atexit.register
def atexit_fun():
    print('i am exit, stack track:')
    dm.destory()


if __name__ == '__main__':
    top = tkinter.Tk()
    dm = DM()
    print(dm.dm.ver())
    # 进入消息循环
    top.mainloop()